package com.itheima.edu.info.manager.util;

import com.itheima.edu.info.manager.dao.BaseStudentDao;
import com.itheima.edu.info.manager.dao.OtherStudentDao;


public class StudentFactory {
//    private static BaseStudentDao baseStudentDao;
//    public static BaseStudentDao getStudentDao(){
//        if (baseStudentDao == null){
//            baseStudentDao = new OtherStudentDao();
//            return baseStudentDao;
//        }
//        return baseStudentDao;
//    }

    public static BaseStudentDao getStudentDao(){
        return new OtherStudentDao();
    }


}
